#include "MinimalListener.h"

namespace Kinect
{
// the listener callback object. Implement these methods to do your own processing
void MinimalListener::KinectDisconnected(Kinect *K) 
{
			printf("Kinect disconnected!\n");
};
		
// Depth frame reception complete. this only means the transfer of 1 frame has succeeded. 
// No data conversion/parsing will be done until you call "ParseDepthBuffer" on the kinect 
// object. This is to prevent needless processing in the wrong thread.
void MinimalListener::DepthReceived(Kinect *K) 
{
	K->ParseDepthBuffer();						
			
	// K->mDepthBuffer is now valid and usable!
	// see Kinect-Demo.cpp for a more complete example on what to do with this buffer
};

// Color frame reception complete. this only means the transfer of 1 frame has succeeded. 
// No data conversion/parsing will be done until you call "ParseColorBuffer" on the kinect 
// object. This is to prevent needless processing in the wrong thread.
void MinimalListener::ColorReceived(Kinect *K) 
{
	K->ParseColorBuffer();
		
	// K->mColorBuffer is now valid and usable!
	// see Kinect-Demo.cpp for a more complete example on what to do with this buffer
};
		
// not functional yet:
void MinimalListener::AudioReceived(Kinect *K) {};
};